<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
   <script>
        var name="window";
        var obj={
            name:"obj",
            sayName:function(){
                console.log(this.name)
            }
        }
        /* 函数存在多个参数的情况，call按顺序传参，apply必须传数组 */
        function go(a,b){
            console.log(this.name)
            console.log(a+b)
        }
        go(2,3);
        go.call(obj,2,3)
        go.apply(obj,[2,3])
   </script>
</body>
</html>